package GUINew;

import javax.swing.JPanel;
import java.awt.Dimension;
import javax.swing.border.TitledBorder;
import java.awt.Color;
import javax.swing.UIManager;
import javax.swing.JLabel;
import javax.swing.ImageIcon;

public class HorizontModule extends JPanel
{

   /**
    * Create the panel.
    */
   public HorizontModule()
   {
      setBackground(Color.DARK_GRAY);
      setMaximumSize(new Dimension(240, 240));
      setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Neigung", TitledBorder.LEADING, TitledBorder.TOP, null, Color.GREEN));
      setPreferredSize(new Dimension(240, 240));
      setLayout(null);
      
      JLabel lblNewLabel = new JLabel("");
      lblNewLabel.setBounds(5, 15, 230, 218);
      lblNewLabel.setIcon(new ImageIcon(HorizontModule.class.getResource("/images/horizont.png")));
      add(lblNewLabel);

   }

}
